<div class="x_panel">
  <div class="x_content row">
    <div class="col-xs-12">
      <h4>听音选词题</h4>
      <form class="form-horizontal form-label-left" action="{$actionUrl}" method="post" enctype="multipart/form-data">
        <div class="form-group">
          <label class="control-label col-md-2 col-sm-4 col-xs-12">题目名称：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[test_title]" value="{$test.test_title}">
          </div>
          <label class="control-label col-md-2 col-sm-4 col-xs-12">请上传音频：</label>
          <div class="checkbox col-md-10 col-sm-12 com-xs-12">
            <audio src="{$test.test_detail}" controls="controls"></audio>
            <input type="file" name="test_detail">
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">选项：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-14">
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            A<input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[test_options][A]" value="{$test_options.A}">
          </div>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            B<input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[test_options][B]" value="{$test_options.B}">
          </div>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            C<input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[test_options][C]" value="{$test_options.C}">
          </div>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            D<input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[test_options][D]" value="{$test_options.D}">
          </div>
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">答案：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[test_answer]" value="{$test.test_answer}">
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">答题选择次数：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[answer_option_num]" value="{$test.answer_option_num}">
          </div>

          {if $test.paper_id==1}
          <label class="control-label col-md-2 col-sm-4 col-xs-12">类型：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
          <input class=""  type="radio" name="form[test_extend]" value="1" {if $test.test_extend==1}checked="checked"{/if}>YCT1
          <input class=""  type="radio" name="form[test_extend]" value="2" {if $test.test_extend==2}checked="checked"{/if}>YCT2
          <input class=""  type="radio" name="form[test_extend]" value="3" {if $test.test_extend==3}checked="checked"{/if}>HSK2
          <input class=""  type="radio" name="form[test_extend]" value="4" {if $test.test_extend==4}checked="checked"{/if}>HSK3
          </div>
          {/if}
          {if $test.paper_id==2}
          <label class="control-label col-md-2 col-sm-4 col-xs-12">类型：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
          <input class=""  type="radio" name="form[test_extend]" value="5" {if $test.test_extend==5}checked="checked"{/if}>A1
          <input class=""  type="radio" name="form[test_extend]" value="6" {if $test.test_extend==6}checked="checked"{/if}>A2
          <input class=""  type="radio" name="form[test_extend]" value="7" {if $test.test_extend==7}checked="checked"{/if}>B1
          </div>
          {/if}

        </div>
        <div class="col-md-3 col-sm-12 col-xs-12 col-md-offset-4 col-sm-offset-4">
          <input type="hidden" name="form[test_type]" value="1">
          <input type="hidden" name="form[paper_id]" value="{$test.paper_id}">
          <input type="hidden" name="test_id" value="{$test.test_id}">
          <button class="btn btn-primary" type="submit">更新</button>
        </div>
      </form>
    </div>
  </div>
</div>
